package com.example.demo.Entity;

/**
 * FS文件系统中的文件
 * 文件名不包含完整路径
 * @author xyt
 */
public class FSFile {
    private StringBuffer name;//文件名
    private StringBuffer time;//最后修改时间
    private long size;        //文件大小
    private boolean share;    //是否分享
    private String type;
    private boolean recycle; //是否在回收站

    public FSFile(String name,String time,long size,boolean share,String type,boolean recycle){
        this.name = new StringBuffer(name);
        this.time = new StringBuffer(time);
        this.size = size;
        this.share = share;
        this.type = type;
        this.recycle = recycle;
    }

    /**
     * getter & setter
     */
    public StringBuffer getName() {
        return name;
    }

    public void setName(StringBuffer name) {
        this.name = name;
    }

    public StringBuffer getTime() {
        return time;
    }

    public void setTime(StringBuffer time) {
        this.time = time;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public boolean isShare() {
        return share;
    }

    public void setShare(boolean share) {
        this.share = share;
    }

    public String getType() { return type; }

    public void setType(String type) { this.type = type; }

    public boolean isRecycle() { return recycle; }

    public void setRecycle(boolean recycle) { this.recycle = recycle; }

}
